package org.lc.stk.web.dto.user;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.Set;

@Data
@Schema(description = "创建用户请求")
public class UserAdminCreateRequest {

    @NotBlank(message = "用户名不能为空")
    @Schema(description = "用户名", required = true)
    private String username;

    @NotBlank(message = "密码不能为空")
    @Schema(description = "密码", required = true)
    private String password;

    @NotBlank(message = "真实姓名不能为空")
    @Schema(description = "真实姓名", required = true)
    private String realName;

    @Email(message = "邮箱格式不正确")
    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "手机号")
    private String phone;

    @NotNull(message = "部门ID不能为空")
    @Schema(description = "部门ID", required = true)
    private Integer departmentId;

    @NotBlank(message = "用户类型不能为空")
    @Schema(description = "用户类型（student/teacher）", required = true)
    private String userType;

    @Schema(description = "角色ID列表")
    private Set<Integer> roleIds;

    @Schema(description = "备注")
    private String remark;
}